package com.yanyu.space.sys.bean.vo.role;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author yanyu
 */
@Data
public class RoleAddVo {

    @ApiModelProperty("角色编码")
    @NotEmpty(message = "{NotEmpty}")
    private String code;

    @ApiModelProperty("角色名称")
    @NotEmpty(message = "{NotEmpty}")
    private String name;

    @ApiModelProperty("启用状态, 1：启用；0：禁用")
    @NotEmpty(message = "{NotEmpty}")
    private Integer enabled;

    @ApiModelProperty(value = "排序")
    @NotEmpty(message = "{NotEmpty}")
    private Integer sort;

    @ApiModelProperty(value = "备注")
    @Max(value = 100, message = "{Max}")
    private String remark;

    @ApiModelProperty("部门树选择项是否关联显示")
    @NotEmpty(message = "{NotEmpty}")
    private Integer deptCheckStrictly;

    @ApiModelProperty("菜单树选择项是否关联显示")
    @NotEmpty(message = "{NotEmpty}")
    private Integer menuCheckStrictly;

    @ApiModelProperty("部门id")
    private List<Long> deptIds;

    @ApiModelProperty("菜单id")
    private List<Long> menuIds;
}
